export default {
  one_to_one_user: {
    type: "object",
    properties: {
      id: {
        type: "integer",
        description: "用户ID",
        example: 1,
      },
      name: {
        type: "string",
        description: "用户名",
        example: "张三",
      },
      profile: {
        $ref: "#/components/schemas/one_to_one_profile",
      },
    },
    required: ["name"],
  },
  one_to_one_profile: {
    type: "object",
    properties: {
      id: {
        type: "integer",
        description: "个人资料ID",
        example: 1,
      },
      gender: {
        type: "string",
        description: "性别",
        example: "男",
      },
      photo: {
        type: "string",
        description: "头像URL",
        example: "http://example.com/photo.jpg",
      },
    },
    required: ["gender", "photo"],
  },
};
